home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
151-175
/
disk_156
/
flex
/
flex2
/
gnu.lib.src
/
telldir.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
622b
|
25 lines
/*
* BSD/Unix expansion library for Amiga.
*
* telldir() -- system independent directory code
*/
#include "dir.h"
/*
* telldir and seekdir don't work quite right. The problem is that you have
* to save more than a long's worth of stuff to indicate position, and it's
* socially unacceptable to alloc stuff that you don't free later under
* AmigaDOS. So we fake it - you get one level of seek, and dat's all.
* As of now, these things are untested.
*/
#define DIR_SEEK_RETURN ((long) 1) /* Not 0! */
long
telldir(my_dir)
DIR *my_dir;
{
my_dir->d_seek = my_dir->d_info ;
return (long) DIR_SEEK_RETURN ;
}